package com.wwg.spring.bean.circleDependency;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class TestCircleDependent {
    public static void main(String[] args) {
        ApplicationContext context = new ClassPathXmlApplicationContext("com.wwg.spring.bean.circleDependency/applicationContext.xml");
//        ApplicationContext context = new ClassPathXmlApplicationContext("com.wwg.spring.bean.circleDependency/applicationContext-constructor.xml");
        Object a = context.getBean("a",A.class);
        System.out.println(a);
    }
}
